(function() {
    'use strict';

    angular
        .module('zhserverApp')
        .controller('JTZhengXiangMySuffixDetailController', JTZhengXiangMySuffixDetailController);

    JTZhengXiangMySuffixDetailController.$inject = ['$scope', '$rootScope', '$stateParams', 'previousState', 'entity', 'JTZhengXiang', 'ZhengXiangMing'];

    function JTZhengXiangMySuffixDetailController($scope, $rootScope, $stateParams, previousState, entity, JTZhengXiang, ZhengXiangMing) {
        var vm = this;

        vm.jTZhengXiang = entity;
        vm.previousState = previousState.name;

        var unsubscribe = $rootScope.$on('zhserverApp:jTZhengXiangUpdate', function(event, result) {
            vm.jTZhengXiang = result;
        });
        $scope.$on('$destroy', unsubscribe);
    }
})();
